package easytodo.client.data;

import java.util.ArrayList;

import easytodo.model.Category;
import easytodo.model.Note;

/**
 * 
 * @author Alexander
 * Retrives and saves data from/to the server.
 */
public interface NoteHandler {
	public void setOnNoteChangedListener(OnNoteChangedListener l);
	public void saveNote(Note note);
	public void removeNote(int id);
	public void editNote(Note note);
	public Note getNote(long id);
	public ArrayList<Note> getAllNotes();
	public ArrayList<Note> searchNote(String searchParameter, String[] searchColumns);
	public void copyNoteHandler(NoteHandler target);
	public ArrayList<Category> getCategories();
}
